-- GENERATED SPELL FOR [Mistwing Ravager] --


function spell0_8764(pUnit, Event) --@Poisoned Shot,n/a--
pUnit:FullCastSpellOnTarget(8806,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8764', 2000, 1)
end

function Sorts_8764(pUnit, Event)
local choix_sorts_8764 = math.random(0, 0)
if choix_sorts_8764 == 0 then
pUnit:RegisterEvent('spell0_8764', 1, 1)
end
end

function mob8764_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8764', math.random(1500, 3000), 1)
end

function mob8764_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8764_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8764_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8764, 1, 'mob8764_Action')
RegisterUnitEvent(8764, 2, 'mob8764_Leave')
RegisterUnitEvent(8764, 3, 'mob8764_Kill')
RegisterUnitEvent(8764, 4, 'mob8764_Die')
